import request from '@/utils/request'

// 查询备注类型列表
export function listMemoType(query) {
  return request({
    url: '/business/memoType/list',
    method: 'get',
    params: query
  })
}

// 查询备注类型详细
export function getMemoType(id) {
  return request({
    url: '/business/memoType/' + id,
    method: 'get'
  })
}

// 新增备注类型
export function addMemoType(data) {
  return request({
    url: '/business/memoType',
    method: 'post',
    data: data
  })
}

// 修改备注类型
export function updateMemoType(data) {
  return request({
    url: '/business/memoType',
    method: 'put',
    data: data
  })
}

// 删除备注类型
export function delMemoType(id) {
  return request({
    url: '/business/memoType/' + id,
    method: 'delete'
  })
}

// 导出文件
export function exportExcel(data){
  return request({
    url: '/business/memoType/export',
    method: 'post',
    data: data
  })
}

// 状态变更
export function updateChangeStatus(data){
  return request({
    url: '/business/memoType/changeStatus',
    method: 'put',
    params: data
  })
}

// 刷新缓存
export function refreshCache() {
  return request({
    url: '/business/memoType/refreshCache',
    method: 'delete'
  })
}
